package se.webbzon.boltzmann.editor.factory.worldobject;

import java.awt.Color;

import se.webbzon.boltzmann.object.geometry.Geometry;
import se.webbzon.boltzmann.object.geometry.GeometryAppearance;
import se.webbzon.boltzmann.object.geometry.GeometryEnum;
import se.webbzon.boltzmann.object.geometry.GeometryMask;

public abstract class AbstractGeometryFactory implements WorldObjectFactory {

	/*============================================================
	Public Methods
	============================================================*/
	
	public Geometry makeGeometry(GeometryEnum geometry) {
		GeometryMask mask = new GeometryMask(geometry,false,18);
		GeometryAppearance appearance = new GeometryAppearance(	geometry,
																false, 18, false,
																0, "", 
																0, 0, 0, 0, 0, 
																Color.white, 0, 1, 1, 
																0, 0, 0);
		try {
			return new Geometry(appearance,true,mask,true);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

}
